package com.whty.cms.filewps.common.service;

import com.whty.cms.filewps.common.model.EsAttachment;
import com.whty.cms.filewps.upload.dto.AttachFile;
import com.whty.cms.filewps.upload.dto.TransformJob;
import net.sf.json.JSONObject;

import java.util.Map;

public interface ICosService {
	
	Map<String, Object> initiateMultipartUpload(AttachFile attach) throws Exception;
	
	String getPartCosAuthorization(JSONObject object) throws Exception;
	
	Map<String, Object> getSimpleCosAuthorization(AttachFile attach) throws Exception;
	
	Map<String, Object> completeMultipartUpload(AttachFile attach) throws Exception;
	
	Map<String, Object> finishUploadFile(AttachFile attach) throws Exception;
	
	void handVTS(AttachFile attach) throws Exception;
	
	JSONObject getTransformInfo(JSONObject data) throws Exception;
	
	JSONObject getTransformInfoNew(JSONObject data) throws Exception;
	
	TransformJob saveCosJob(EsAttachment es) throws Exception;
	
	Map<String, String> getTempCredential(String buketName, String region);
	
	String transformForFid(JSONObject json) throws Exception;

	JSONObject getTransformInfoForV5(String fid, cn.hutool.json.JSONObject data) throws Exception;
}
